package yang.VirtualMachine.chapter11.asmTime;

public class TimeStat {
	static ThreadLocal<Long> t = new ThreadLocal<>();
	public static void start() {
		t.set(System.currentTimeMillis());
	}
	public static void end() {
		long time = System.currentTimeMillis() - t.get();
		System.out.print(Thread.currentThread().getStackTrace()[0] + "spend:");
		System.out.println(time);
	}

}
